import pandas as pd
df = pd.read_excel(r'python-small-homework\backend\豆pa评分top250.xlsx')  # 读取Excel
json_data = df.to_json(orient='records', force_ascii=False)  # 转换为JSON数组
with open('output.json', 'w', encoding='utf-8') as f:
    f.write(json_data)  # 保存文件
